projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7843e09
)
(resize_mini_window): Compute needed height differently.
author
Gerd Moellmann
<gerd@gnu.org>
Sun, 31 Oct 1999 13:04:20 +0000
(13:04 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Sun, 31 Oct 1999 13:04:20 +0000
(13:04 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index fd9d7c7d230b36290ed0337ed82acf4e6658b793..1c2e22e7a53cbd2c0df7509a69c479d35d069c00 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-5519,7
+5519,8
@@
resize_mini_window (w, exact_p)
/* Find out the height of the text in the window. */
move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS);
- height = (unit - 1 + it.current_y + last_height) / unit;
+ height = ((unit - 1 + it.current_y + it.max_ascent + it.max_descent)
+ / unit);
height = max (1, height);
/* Compute a suitable window start. */